/**
 * $Revision: 1.0 $
 * $Author: Eric Yang $
 * $Date: Aug 30, 2009 9:42:20 PM $
 *
 * Author: Eric Yang
 * Date  : Aug 30, 2009 9:42:20 PM
 *
 */
package com.gooex.web.action.manage.product;

import java.util.List;

import com.gooex.domain.base.Product;
import com.gooex.service.base.IProductManager;
import com.gooex.web.action.BaseManageableAction;


/**
 * @author Eric Yang
 * @version 1.0
 */
public class ManageProductViewAction extends BaseManageableAction {

	private IProductManager productManager;

	private List<Product> products;

	private String keyword;

	private boolean raw = true;

	public String execute() throws Exception {
		products = productManager.getProducts(keyword, page, raw);
		return SUCCESS;
	}

	public List<Product> getProducts() {
		return products;
	}

	public void setProductManager(IProductManager productManager) {
		this.productManager = productManager;
	}

	public String getKeyword() {
		return keyword;
	}

	public void setKeyword(String keyword) {
		this.keyword = keyword;
	}

	public boolean isRaw() {
		return raw;
	}

	public void setRaw(boolean raw) {
		this.raw = raw;
	}

}
